x = [4, 6, 2, 1, 7, 9]
y = x.copy()
y.sort()
print(y)
#Output:[1, 2, 4, 6, 7, 9]
    
y = sorted(x)
print(y)
#Output:[1, 2, 4, 6, 7, 9]
    
import os
fls = os.listdir(".")
fls.sort()    
print(y)
#Output:[1, 2, 4, 6, 7, 9]